<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "d_promotion.promotion".
 *
 * @property integer $bestry_id
 * @property integer $first_express_free
 */
class Promotion extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'd_promotion.promotion';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['bestry_id'], 'required'],
            [['bestry_id', 'first_express_free'], 'integer'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'bestry_id' => 'Bestry ID',
            'first_express_free' => '首单免运费',
        ];
    }

    /**
     * @inheritdoc
     * @return PromotionQuery the active query used by this AR class.
     */
    public static function find()
    {
        return new \services\models\PromotionQuery(get_called_class());
    }
}
